package com.cookbook.database.data;

import com.cookbook.database.model.History;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by 胡玉斌 on 2017/7/4.
 */
public interface HistoryMapper {
    List<History> selectWithOffset(
            @Param("userid") Integer userid);

    void insert(@Param("userId") Integer userId,
                @Param("cookbookId") Integer cookbookId);

    Long deleteWithHistoryIdAndUserId(
            @Param("userId") Integer userId,
            @Param("cookbookId") Integer cookbookId);


}
